package com.licq.hm.net

import retrofit2.Call
import retrofit2.Callback

interface NetRetrofitCall<T> : Call<T> {
    override fun enqueue(callback: Callback<T>) {
        if (callback is NetRetrofitCall<*>) {
            val netCallBack = callback as NetCallBack<T>
            netCallBack.onSubscribe(this)
        }
    }
}